from flask import Flask, render_template, jsonify
from analyse.analyse import *

app = Flask(__name__)


@app.route('/')
def index():
    return render_template('index.html')


@app.route('/line')
def line():
    return jsonify(line_data())


@app.route('/bar')
def bar():
    return jsonify(bar_data())


@app.route('/pie')
def pie():
    return jsonify(pie_data())


@app.route('/radar')
def radar():
    return jsonify(radar_data())


@app.route('/word_cloud')
def word_cloud():
    return jsonify(word_cloud_data())


@app.route('/treemap')
def treemap():
    return jsonify(treemap_data())


if __name__ == '__main__':
    app.run()
